<?php

require_once WACT_ROOT . 'db/db.inc.php';

class State {

	function &getStates(){
    	$rs =& DBC::NewRecordSet('SELECT * FROM sport_states ORDER BY short_name');

    	$rs->reset();
    	$states = array();
    	$states['(ALL)']='(ALL)'; 
    	while ($rs->next()) {
        	$state = $rs->get('short_name');
        	$states[$state]=$state;
        }
        return $states;
    }

}

?>